package com.ccrfid.rmc6.pojo.dto;

import com.vividsolutions.jts.geom.Point;
import org.hibernate.annotations.Type;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

@Entity
public class PersonnelMoveDto {
    private Long id;
    private Long personnelId;
    private Long cardNumber;
    private Integer frontLocatorAddress;
    private Integer currentLocatorAddress;
    private Timestamp recordTime;
    private Long locationId;
    private String locationName;
    private Integer locationType;
    private Point locationCentroid;
    private Integer floorNumber;
    private Long bindOrgId;

    @Id
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    public Integer getFrontLocatorAddress() {
        return frontLocatorAddress;
    }

    public void setFrontLocatorAddress(Integer frontLocatorAddress) {
        this.frontLocatorAddress = frontLocatorAddress;
    }

    public Integer getCurrentLocatorAddress() {
        return currentLocatorAddress;
    }

    public void setCurrentLocatorAddress(Integer currentLocatorAddress) {
        this.currentLocatorAddress = currentLocatorAddress;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    public Integer getLocationType() {
        return locationType;
    }

    public void setLocationType(Integer locationType) {
        this.locationType = locationType;
    }

    @Type(type = "jts_geometry")
    public Point getLocationCentroid() {
        return locationCentroid;
    }

    public void setLocationCentroid(Point locationCentroid) {
        this.locationCentroid = locationCentroid;
    }

    public Integer getFloorNumber() {
        return floorNumber;
    }

    public void setFloorNumber(Integer floorNumber) {
        this.floorNumber = floorNumber;
    }

    public Long getBindOrgId() {
        return bindOrgId;
    }

    public void setBindOrgId(Long bindOrgId) {
        this.bindOrgId = bindOrgId;
    }
}
